<section>
<h2>Update Info</h2>
<?php echo Common::renderFlashMessage(); ?>
<p><?php if($this->notifyMessage) { echo $this->notifyMessage; } ?></p>
<p><?php if($this->errorMessage) { echo $this->errorMessage; } ?></p>
<form method="post" id="formProfile" name="formProfile" action="<?php $_SERVER['PHP_SELF']; ?>">
<fieldset>
	<legend>Profile</legend>
	<p>
		<label for="name">Name: </label>
		<input type="text" id="name" name="name" value="<?php echo $this->profile->user_name; ?>" >
	</p>
	<p>
		<label for="gender">Gender: </label>
		<input type="radio" name="gender" value="M" <?php echo ($this->profile->user_gender =='M')?'checked':'' ?>>Male
		<input type="radio" name="gender" value="F" <?php echo ($this->profile->user_gender =='F')?'checked':'' ?>>Female
	</p>
	<p>
		<label for="address">Address: </label>
		<input type="text" id="address" name="address" value="<?php echo $this->profile->user_address; ?>" >
	</p>
	<p>
		<label for="city">City: </label>
		<input type="text" id="city" name="city" value="<?php echo $this->profile->user_city; ?>" >
	</p>
	<p>
		<label for="state">State: </label>
		<input type="text" id="state" name="state" value="<?php echo $this->profile->user_state; ?>" >
	</p>
	<p>
		<label for="postal">Postal: </label>
		<input type="text" id="postal" name="postal" value="<?php echo $this->profile->user_postal; ?>" >
	</p>
	<p>
		<label for="phone">Phone: </label>
		<input type="text" id="phone" name="phone" value="<?php echo $this->profile->user_phone; ?>" >
	</p>
	<p>
		<label for="email">Email: </label>
		<input type="text" id="email" name="email" value="<?php echo $this->profile->user_email; ?>" >
	</p>
	<p>
		<label for="dob">Date of Birth: </label>
		<input type="text" id="dob" name="dob" value="<?php echo $this->profile->user_dob; ?>" >
	</p>
</fieldset>
	<input type="submit" value="submit" id="submit" name="submitProfile">
</form>
</section>